
    <!-- Modal -->
    <div id="frm-post-popup" class="white-popup mfp-hide" style="max-width: 745px">
        <h2>上传作品</h2>

        <div class="aline" style="margin-bottom: 10px"></div>
        <div>
            <div class="row">
            <form class="form-horizontal " role="form"  action="{:U('Zuopin/Index/doPost')}" method="post" enctype="multipart/form-data">  
               <div class="col-md-4">
             <div class="form-group">
             <div class="controls">
        
              <a class="btn btn-primary" style="height:30px; width:250px;" onclick="$('input[id=lefile]').click();"><i class="glyphicon glyphicon-folder-open"> </i>    浏览文件</a>
             </div>
             <div class="upload-img-box" style="margin-top: 20px;width: 250px">
               <input id="lefile" class="form-control" type="file" name="file" style="display:none">
              <div class="input-append">

              <input name="filename" id="photoCover" class="input-large" type="text" style="height:60px; width:250px;" placeholder="暂无文件" >
                
              </div>
              </div>
           <script type="text/javascript">
            $('input[id=lefile]').change(function() {
            $('#photoCover').val($(this).val());
           
            });
            </script>
                  <div class="upload-img-box"  style="margin-top: 20px;width: 250px">
                  <div style="font-size:2em;padding:2em 0;color: #ccc;text-align: center">选择文件上传</div>
                  </div>
        </div>

                </div>
                <div class="col-md-8">
                   
                        <div class="form-group">
                        <div class="controls">
                         <php> 
                          /*dump(session('user_auth.lid'));*/
                          //dump($myclass[lid]);
                                     
                    </php>

                                </div>
                                </div>
                        <div class="form-group">
                            <label for="keti" class="col-sm-2 control-label">标题</label>
                            <div class="col-sm-10">
                                <select id="lid" name="lid" class="form-control">

                                  <volist name="keti" id="v">
                                     <option value="{$v.id}" 
                                     <if condition="$v.id eq $myclass['lid']">selected</if> >
                                            {$v.title}
                                        </option>

                                    </volist>
                                </select><!-- <eq name="v.id" value= "$myclass.lid" > </eq> -->
                            </div>
                        </div>
                        <div class="form-group">
                         <input type="hidden" name="cover_id" id="cover_id_cover" value="1"/>
                            <label for="content" class="col-sm-2 control-label">介绍</label>
                            <div class="col-sm-10">
                                <php>
								    
                                    $config="toolbars:[['source','|','bold','italic','underline','fontsize','forecolor','justifyleft','fontfamily','|','map','emotion','insertimage','insertcode']]";
                                </php>
                                {:W('Common/Ueditor/editor',array('myeditor','content',$aContent,'378px','250px',$config,'',array('zIndex'=>1040)))}
                            </div>
                        </div>
                        <div class="form-group">

                            <div class="col-sm-offset-2 col-sm-10">
                                    <php>$hasWeibo=D('Module')->checkInstalled('Weibo');</php>
                                    <eq name="hasWeibo" value="1">
                                        <label>
                                            <input type="checkbox" name="sendWeibo" value="1" checked> {:L('_SYN_TO_TWITTER_')}
                                        </label>
                                    </eq>
                                <button type="submit" class="btn btn-primary pull-right" href="{:U('Zuopin/Index/doPost')}">提交</button>
                            </div>
                        </div>
                    
                
                </div>
              </form>  
            </div>

        </div>

    </div>
    <!-- /.modal -->
    <block name="script">
        <script type="text/javascript">
            var SUPPORT_URL="{:addons_url('Support://Support/doSupport')}";
        </script>
    </block>


